package gaspider;

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

public class DateDemo5 {  
    public static void main(String args[]) {  
        Date date = new Date();  
          
        Locale locale = new Locale("en", "US");  
          
        DateFormat shortDateFormat = DateFormat.getDateInstance(DateFormat.SHORT, locale);  
        DateFormat mediumDateFormat = DateFormat.getDateInstance(DateFormat.MEDIUM, locale);  
        DateFormat longDateFormat = DateFormat.getDateInstance(DateFormat.LONG, locale);  
        DateFormat fullDateFormat = DateFormat.getDateInstance(DateFormat.FULL, locale);  
          
        System.out.println(shortDateFormat.format(date));  
        System.out.println(mediumDateFormat.format(date));  
        System.out.println(longDateFormat.format(date));  
        System.out.println(fullDateFormat.format(date));  
          
    }  
} 